I fill a bugreport about QString holding data over 11KB. It just crashed my application and it only happen on UWP kit aka WinRT. Any idea on how to get around of it until the Qt Team resolved it ?
To reproduce the crash, create an application based on Qt Quick 2 template, copy paste a string of 11KB on the textfield then clic the button.
https://bugreports.qt.io/browse/QTBUG-61911
Related
I'm writing a cross-platform Gtk3 application in C++. Lately I've been working on the integration with MacOS:
Gtkmm 3.24 obtained via Homebrew;
XCode 12.0;
MacOS Catalina 10.15.
I have derived my application class from Gtk::Application. The application object overrides the 'on_startup()' which calls the base class 'on_startup() and then uses a Gtk builder resource to construct a Gio::Menu object from an XML file, and then 'Gtk::Application::set_app_menu()' to install it:
MyApplication::on_startup()
{
Gtk::Application::on_startup();
// skipping details: ... Gtk builder reads Gio::Menu object from resource file ...
set_app_menu( pMenu );
}
When I first launch my application:
the menu bar is unresponsive. The application menu appears next to the Apple menu in the bar at the top of the screen, but neither responds to mouse clicks;
except from the frozen menu bar, the application is functioning normally and its main window is responsive.
However, then:
click on any other open application's window, that application's menu bar appears;
click on my application's window to switch back to it, its menu bar returns and now works perfectly.
This is 100% reproducible (frozen at first, toggle away to another app and back and now the menu works).
I created another project in XCode and built the Gtkmm example "app_and_win_menus" and the example application behaves the exact same way.
So I think I'm really just looking for a workaround. I've been scouring the net for any information about this problem and saw others complaining generally about frozen menu bars on MacOS but none specific to Gtk (all other applications on this Mac work normally, it's only the apps that I build with Gtk+/Gtkmm 3.24 that exhibit this issue).
I realize this sounds a bit like a bug report and this may not be the place to bring it up, but I'm unsure where to go from here. Any information much appreciated.
I'm using Active Qt in the goal to show a Web Browser inside my qt application. I can show a Google Map page inside a Tab. It uses an ActiveX-based component with an Internet Explorer Browser inside. Everything is ok but when I resize the windows with my mouse, I have a strange non-wanted resize to my orignal size (800x600) after 1 or 2 secondes of manual resize.
Do you have a tip to avoid this strange behavior ?
ps : I use Qt 5.6.2 cuz I need about the Windows XP¨compatibilty
Working on project with UE4. I want to create UI with using Qt Designer and all Qt UI tools. I have already done opening window with some Qt forms (treeview and group of checkboxes) but I failed transmit picture from Unreal Engine window to QWidget.
I read about HWDL window, but i didn't found any information about realization. Found only how to get HWDL from UE4, but didn't found how to set to QWidget or wise versa get HWDL from QWidget and set it for UE4 (I think the second one better).
Maybe someone have done it? Or know approach to do it.
I have a problem with QFileDialog in a software that my friend and I are developing.
The software is a CAD programmed in C++/Qt(5.6) , so it uses a lot the MVC design pattern. The problem is the following :
We use QFileDialog when we are about to load or save a project.
-When we start the software and we first load the project, everything works fine
-When we try to load again, the QFileDialog doesn't display well. It does not seem frozen, the only displayed part (folders part, on the left) responds but does not display any file on the center.
The only difference I see is that after the first load, QGraphicsItem are created and updated in order to display the parts of the loaded project.
Do you know what could be the problem ?
EDIT - The Code
QFileDialog fileDialog(0,tr("Load Project"), "./..", tr("CAD files (*.json)"));
fileDialog.setAcceptMode(QFileDialog::AcceptOpen);
fileDialog.setFileMode(QFileDialog::ExistingFiles);
if (QDialog::Accepted != fileDialog.exec())
return NULL;
QStringList sel = fileDialog.selectedFiles();
EDIT 2 - A working solution
By forcing Qt not to use the native dialog we can display a window correctly.
fileDialog.setOption(QFileDialog::DontUseNativeDialog,true);
We are on Linux Mint 17.2, with cinnamon. Did you know any conflict between Qt and Cinnamon ?
It might be a problem with the relative directory/path "./..". Try replacing it with something else, for example QDir::home().absolutePath()
QFileDialog fileDialog(0,
tr("Load Project"),
QDir::home().absolutePath(),
tr("CAD files (*.json)"));
Qt might also conflicting with something that is installed on the machine, as noted by #ElevenJune:
By forcing Qt not to use the native dialog we can display a window correctly.
That sounds like a conflict to me... Are you using any other libraries than Qt within the app?
I am using Carbide (just upgraded to 2.0) to develop an S60 3rd Edition application.
I would like to know the easiest way to change the icon (both the application icon on the device menu and the icon at the top left of the main view) because I have the need to skin my application in many different ways as easily as possible.
All my efforts with messing around with .mif files have so far failed. I have a 44x44 .svg icon I made with Illustrator, could someone please help me in the right direction?
Thanks!
To change the app icon when you run your app use (in the status bar):
CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane();
CAknContextPane* cp=(CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext));
_LIT(KContextBitMapFile, "my_bitmap_file.mbm");
CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(KContextBitMapFile, EMbmBitmap);
CleanupStack::PushL(bitmap);
CFbsBitmap* bitmapmask = iEikonEnv->CreateBitmapL(KContextBitMapFile, EMbmBitmapMask);
CleanupStack::PushL(bitmapmask);
cp->SetPicture(bitmap, bitmapmask);
CleanupStack::Pop(); // bitmapmask
CleanupStack::Pop(); // bitmap
DrawNow();
I'm not aware of any possibility of changing the app icon in the menu list programmatically, other than reinstalling the app with different mif file.
If you want to change the icon in your SIS file and then overinstall it on device then you may have to reboot your device after installation - the application icon is in the Symbian cache and is not updated.
http://wiki.forum.nokia.com/index.php/CS000808_-_Creating_and_adding_an_icon_to_an_S60_3rd_Edition_application
With latest QMake and Qt SDK (4.6.2) you don't need to create any .mif file yourself. An SVG file will do.
For more detailed instructions see: How to Set Qt Application Icon and Title in Symbian S60.
Although the article uses Qt Creator, as long as you use QMake then it's the same thing.