Dragging widgets to window won't work - qt

I'm using Qt Creator for several months now and from time to time, I get a problem dragging widgets like buttons, line edits and so from the toolbox to the window.
I try by removing the layouts but still get the same issue.
I use Qt Creator 2.4.0 on OS X 10.7.2
Thanks for helping

I fixed this problem by upgrading Qt Creator to version 2.4.1 on OS X
The solution described above by #spyke might also be helpful for Windows users.
It case there is a dead link, the solution for Windows says :
I was using Qt Designer for Qt Jambi built with Qt 4.6.4 on Windows 7 ×64 when this problem occurred. After a while I realized that the problem was not only in Qt designer, but in Windows in general: Explorer, FileZilla and more.
The solution was then found by searching for general Windows 7 drag and drop problems [answers.microsoft.com].
In short: Select a file in Windows Explorer with click and hold left mouse button. While holding the button down, hit the Esc key. Then drag and drop starts working again.

Related

Restore Qt Creator default layout

I am totally new to Qt development. Infact today's my first day! I installed Qt 5.3.1 open source (LGPL license). I was looking around in the Qt Creator and accidentally closed several sub-windows and not able to view the actual code, other list of opened files, etc. But it does load the project and also executes when I click the green 'Run' button. How do I recover the default layout? There is no window layout/View option in the menu. Can't see anything online! Please help...
Qt Creator creates some files to save the settings. These files are in different location in different operating systems.
On Windows Vista and Windows 7 :
<drive>:\Users\<username>\AppData\Roaming\QtProject and <drive>:\Users\<username>\AppData\Local\QtProject
On Linux :
~/.config/QtProject and ~/.local/share/data/QtProject/qtcreator
Try to delete QtCreator.ini and many settings including the layout are reset to default when you reopen Qt Creator.
Alt+0 will show project tree. Use ctrl+k to open search window.
Regards

Application slower on qt 4.8.0 than 4.7.4

I have an application that I was developing with Qt 4.7.4 but I had the problem (the bug is reported) with the button's (too small) hit area. So I change for Qt 4.8.0. Now my problem with the button is resolved, but my application runs really slower that it ran with Qt 4.7.4. Is there anything I need to do? Kind of settings...
Thanks

"Design" button grayed out in Qt Creator for QML Project

I'm on a Kubuntu 11 system and trying out my first Qt Quick project. As this is Kubuntu I'm just running with the Qt that came with it, which has worked fine so far.
I asked Qt Creator to create the sample "Hello World" project from Qt Quick. But the design button was grayed out, as were the run buttons.
At first when I went into the Projects menu under "Run Settings" it said Qt version: [Invalid Qt Version]. Pushing the "Manage Qt versions" button brings up a tree control that looks like this:
v -- Auto-detected
| |
| +---Qt in PATH /usr/bin/qmake-qt4
|
+--- Manual
At the bottom of the dialog it says "Found Qt version 4.7.2, using mkspec linux-g++ (Desktop)"
I found out that I could get the "Invalid Qt version" message to go away by manually choosing to install QmlViewer from the app repositories. You'd think it would say something more like "Qml Viewer not found, please install it" but...oh well. Now it says Qt Version: [Qt in PATH].
So that's fixed, and the Qml app runs. But the "Design" button is still grayed out. Qt Designer is installed as an application, and its plugin shows in the "About Plugins..." list. The design button is enabled in ordinary (non-Qt-Quick) projects when I click on a form file, just not for .qml files.
in the QtCreator, go to Help -> About plugins -> Select "QT Quick".
Restart QtCreator and then select the ui.qml files. It should work now
In my case it wasn't showing up because I had my cpp file open. When I double clicked on the .ui file, the design button became active.
Solved it while writing the question.
To make a long story short: this appears to be a known issue in general with installing Qt Creator through the ubuntu repositories as opposed to using the Qt SDK Installer from Nokia:
http://qt.nokia.com/downloads
(That installer seems to do the work of making sure the proper SDK elements are installed, while the linux package repositories lag in getting things right.)
Another option seems to be building Qt from sources. But uninstalling the Qt Creator I got through KPackageKit and instead using the installer from Nokia was less involved, and worked for me in this case.

Air AutoUpdate & Windows 7 pin icon

I've created an Air app for use in work. To make things slightly easier, I pin the icon to taskbar (Windows 7). The app uses the auto-update framework (default), which works fine.
After I update though, the pinned icon becomes a default blank page icon. If I click on this icon, Windows will tell me that it can't find the program. I need to unpin the icon and repin a new one (the icon in the start menu works fine).
Anyone else have this problem and know how to fix it?
I'm using AIR 2.7 (compiling with the Flex 4.1 SDK) and I'm on Windows 7 64 bit if that helps.
A workaround would be to wrap your app inside another app as a module and only update that module. That way only the module SWF would be overwritten, leaving the original app intact.
Resurrecting an old question. After digging around with pretty specific questions on Google, I found 2 posts, one in the Adobe forums:
http://forums.adobe.com/message/3449244
and the other in the JIRA:
https://bugs.adobe.com/jira/browse/SDK-24649
It looks like this bug has been open for a while and isn't getting fixed any time soon.

Qt: what is the current status of Windows 7 Taskbar Extensions support?

Windows 7 Aero Theme has a brand new taskbar with extensions.
What is the current status of Taskbar Extensions (jump lists, etc.) support in Qt?
Far as I'm aware there's no support for this yet - but there would be nothing to stop you making native OS API calls to do this just on Windows.
If you want to see an example of this approach, check out this recent Qt Labs posting about using "blur-behind" on windows.
There is a commercial Qt add-on that implements all the taskbar extensions. It is called Q7Goodies and it seems to be really easy to use.
I've written a small library for Qt, it just provides support for progress bar and overlay icons on the new Windows 7 taskbar. You can find it on my blog. Obviously it is free to download and use.

Resources