Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Qt App, loading a Qt Dll, crashes on exit

    4
    0 Votes
    4 Posts
    3k Views
    J
    That's right ! These instructions are just added considering the application calling my Qt Dll are not "Qt native" and there is no QApplication instance yet. In the present usage qApp is not NULL (instance on app side) and anyway the following instructions won't be executed on Dll side : @ if (pApp){ pApp->quit(); delete pApp; } @
  • Drawing graphs in Qt embedded - advices

    5
    0 Votes
    5 Posts
    4k Views
    D
    Thanks to point me to QCustomPlot Code_ReaQtor. It seems very interesting. :) In the meanwhile, I've tried to recompile qwt for my embedded system but still had trouble. However, it seems that the problem is only related to a linking issue with the qwt and the cross-compiling toolchain used is not directly involved. I'll investigate the issue further these days. As a next step, I'm going to give QCustomPlot a try. Thanks again.
  • How to insert frames from a digital camera in a QT application

    5
    0 Votes
    5 Posts
    2k Views
    A
    Ahh!!!Ok I didn't know it :S. Sorry. I know something new now :)
  • QtUrl problem with Windows 7 - 64 bit

    2
    0 Votes
    2 Posts
    1k Views
    C
    [quote author="vsthakur1" date="1352770236"] How to deal with ")" character in the URL , so that is is not broken ? [/quote] Have you tried adding backslash ("") before it? e.g. ")". There are instances that we need to add "" when dealing with special characters.
  • How to emulate a mouse?

    3
    0 Votes
    3 Posts
    2k Views
    M
    I'm not quite sure what you are trying to do, but QTest can emulate user input (like Mouse).
  • Signal and slots qRegisterMetaType

    3
    0 Votes
    3 Posts
    12k Views
    Chris KawaC
    You seem to be missing something in your typedef. I'll assume this is something like @typedef SomeGiantTypeThatIDontWantToRetypeOrWhatever SmartPointer;@ qRegisterMetaType takes a string name of your class e.g. @qRegisterMetaTypeexample::SmartPointer("SmartPointer")@ You can call it wherever just as long as your typedef is visible there and before you use it for connecting or access its metadata. Also, make sure you use Q_DECLARE_METATYPE outside of your example namespace.
  • 0 Votes
    5 Posts
    5k Views
    ?
    I'm trying to try again, thanks.
  • QGraphicsEffect on Mac OS X does not work with QWidgets

    6
    0 Votes
    6 Posts
    5k Views
    B
    I also can not use any QGraphicsEffects on OS X without it crashing. It runs just fine if I don't set the QGraphicsEffect on the QPushButton, but if I do, it crashes as soon as it tries to draw/paint. Qt 4.8.3 This is the error displayed at runtime: QPainter::begin: Widget painting can only begin as a result of a paintEvent QPainter::translate: Painter not active The program has unexpectedly finished. /////////////////////////////////////////////////////////////////////////////////// Process: QGE_Test [68591] Path: /Users/USER/*/QGE_Test.app/Contents/MacOS/QGE_Test Identifier: com.yourcompany.QGE_Test Version: ??? (???) Code Type: X86-64 (Native) Parent Process: Qt Creator [67145] Date/Time: 2012-11-12 12:46:01.941 -0800 OS Version: Mac OS X 10.7.4 (11E53) Report Version: 9 Interval Since Last Report: 256420 sec Crashes Since Last Report: 13 Per-App Interval Since Last Report: 4 sec Per-App Crashes Since Last Report: 1 Anonymous UUID: 0B870E43-6B86-4D58-BEE4-896207A07B53 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Regions Near 0: --> __TEXT 0000000100000000-0000000100003000 [ 12K] r-x/rwx SM=COW /Users/USER/*/QGE_Test.app/Contents/MacOS/QGE_Test Application Specific Information: objc[68591]: garbage collection is OFF Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 QtGui 0x0000000100706d78 QGraphicsBlurEffect::draw(QPainter*) + 72 1 QtGui 0x00000001000e43cf QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 2607 2 QtGui 0x00000001000e4b34 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1460 3 QtGui 0x00000001000e3e50 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1200 4 QtGui 0x00000001000337da -[QCocoaView drawRect:] + 1786 5 com.apple.AppKit 0x00007fff8d9eb97a -[NSView _drawRect:clip:] + 3758 6 com.apple.AppKit 0x00007fff8da18b4f -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583 7 com.apple.AppKit 0x00007fff8da18f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651 8 com.apple.AppKit 0x00007fff8d9e8f55 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032 9 com.apple.AppKit 0x00007fff8d9e844f -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 270 10 com.apple.AppKit 0x00007fff8d9e386f -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755 11 com.apple.AppKit 0x00007fff8d9dc2ed -[NSView displayIfNeeded] + 1676 12 com.apple.AppKit 0x00007fff8da999ab -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1306 13 com.apple.AppKit 0x00007fff8da993a8 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 807 14 com.apple.AppKit 0x00007fff8da9902c -[NSWindow orderWindow:relativeTo:] + 154 15 com.apple.AppKit 0x00007fff8da988cd -[NSWindow makeKeyAndOrderFront:] + 49 16 QtGui 0x000000010002a253 QWidgetPrivate::show_sys() + 1123 17 QtGui 0x00000001000eabd8 QWidgetPrivate::show_helper() + 408 18 QtGui 0x00000001000eaf0f QWidget::setVisible(bool) + 511 19 com.yourcompany.QGE_Test 0x0000000100002ab7 QWidget::show() + 39 (qwidget.h:494) 20 com.yourcompany.QGE_Test 0x00000001000028da main + 970 (main.cpp:20) 21 com.yourcompany.QGE_Test 0x00000001000024e4 start + 52
  • Building QT 4.8.3 with jom on cmd

    4
    0 Votes
    4 Posts
    4k Views
    T
    Hi, ~CanisMajorWuff! Welcome to Developer Network! Sorry, but it's better to write Qt instead of QT. Because QT is QuickTime, not Qt.
  • Qt5: QJSEngine, QObject and slots

    3
    0 Votes
    3 Posts
    2k Views
    A
    That's a shame. I guess we'll have to stick with the old engine for now. I've dug around trying to figure out how add slot/signal support but that is entirely non-trivial.
  • How to Save my TableView as an Excel File ?

    14
    0 Votes
    14 Posts
    11k Views
    M
    100% True... I Will think about it next time.. :-) Thanks & Regards
  • Apllication Crashs on Windows. Code Error:

    6
    0 Votes
    6 Posts
    2k Views
    D
    If I install the MinGW 4.4 I will not need to compile all libs?!
  • Force window to stay in background (like Conky)

    3
    0 Votes
    3 Posts
    3k Views
    P
    [quote author="Lukas Geyer" date="1352735892"]I would start with setting the Qt:WindowStaysOnBottomHint window flag. I'm not quite sure on how to hide it from the Unity bar, but usually a hidden parent window does the trick.[/quote] Well that did make the window stay in the background, Thanks! Now I just gotta figure out how to do the rest of the things.
  • Do you think PROTECTED QThread::sleep() method should be made PUBLIC ?

    3
    0 Votes
    3 Posts
    7k Views
    U
    Thanks for the info. That's good news.
  • Qt 4.8.2 still available for download?

    4
    0 Votes
    4 Posts
    5k Views
    W
    Aah thank you both.
  • OpenGL Core

    1
    0 Votes
    1 Posts
    743 Views
    No one has replied
  • [Solved]Detect the QMainWindow is showing or not

    4
    0 Votes
    4 Posts
    2k Views
    B
    "QWidget::isActiveWindow()":http://doc.qt.digia.com/qt/qwidget.html#isActiveWindow-prop
  • Which model to choose?

    5
    0 Votes
    5 Posts
    6k Views
    JeroentjehomeJ
    Hi, Thx for the replies! Will try to implement the QStandardItemModel at first. It seems the most easy way to go. Thx again!
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • QT/C++ Application, .Net plugins?

    2
    0 Votes
    2 Posts
    1k Views
    M
    Yes, you can create activex and use it on Qt and vice versa. take a look at examples for ActiveQt to understand how to take QObject drived classes into .Net and other environments. http://qt-project.org/doc/qt-4.8/activeqt-dotnet.html http://qt-project.org/doc/qt-4.8/activeqt-wrapper.html