Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Debugging problem !!!

    2
    0 Votes
    2 Posts
    1k Views
    jensen82J
    Install the Debugging Tools for Windows (CDB) and you are able to debug. Here's a link: "Debugging Tools":http://msdn.microsoft.com/en-us/windows/hardware/gg463009
  • Cannot build Qt 4.8.1 using nmake

    4
    0 Votes
    4 Posts
    4k Views
    M
    I tried again using a different git and it seems to be working now. shrug Just one of those things I guess. Consider this resolved for now.
  • QPainter and OpenGL (Pixel- or Framebuffer)

    5
    0 Votes
    5 Posts
    2k Views
    M
    You must click the link.
  • Resizing MenuBar by stylesheet

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QHelpEngine usage

    3
    0 Votes
    3 Posts
    2k Views
    I
    problem solved after some hours of headache... but... it was all in the docs :D Giampaolo
  • Howto change settings in QLocale

    3
    0 Votes
    3 Posts
    2k Views
    A
    For the Date and Time format, I have methods where I can specify a custom format. When converting a float or double to string, I do not have such an option. Does that mean I have to write my own conversion function that uses "my" decimal separator?
  • Displaying text in Qt

    6
    0 Votes
    6 Posts
    14k Views
    F
    Thanks a lot for the improved code, that helps me to learn more. I appreciate it.
  • Qt + (old version of) MinGW

    3
    0 Votes
    3 Posts
    2k Views
    A
    Well, there is a C:\QtSDK\mingw_patches folder which contains some diff/patch files, so I guess there is some kind of customisation in the MinGW version they use (but probably not in GCC itself indeed).
  • Send a Email

    14
    0 Votes
    14 Posts
    9k Views
    R
    [quote author="Andre" date="1333526158"] [quote author="felipe.c.sousa" date="1333468700"]http://qt-project.org/forums/viewthread/15913/#80578 i use that. [/quote] Could you be more explicit on what that is? I doubt every one in this topic speaks Portugese...[/quote] look this: http://zip.net/bfgq7B
  • How to check QtableWidgetItem existance

    5
    0 Votes
    5 Posts
    2k Views
    F
    ;p
  • Slow on Ubuntu

    5
    0 Votes
    5 Posts
    2k Views
    T
    thank you DocOx, see you.
  • Blocking custom events from being processed

    10
    0 Votes
    10 Posts
    8k Views
    Q
    The solution with the event filter works (see code below), allthough I don't like it very much: @ class CustomEventBlocker : public QObject { typedef QPair<QObject*, QEvent*> tEvnt; typedef QList<tEvnt> tEventStore; tEventStore m_EventStore; protected: bool eventFilter(QObject *obj, QEvent *pEvnt){ switch( pEvnt->type()){ case Event::Types::PageOpen: pEvnt = new Event::PageOpen( *static_cast<Event::PageOpen*>(pEvnt)); break; default: return QObject::eventFilter(obj, pEvnt); } // store event, post later again m_EventStore.append( tEvnt( obj,pEvnt) ); return true; } public: CustomEventBlocker() :QObject() { Epam::getInstance().getMainWidget()->installEventFilter( this); } ~CustomEventBlocker() { Epam::getInstance().getMainWidget()->removeEventFilter( this); // post stored events tEventStore::iterator iEnd = m_EventStore.end(); for( tEventStore::iterator itor = m_EventStore.begin(); itor != iEnd; ++itor){ QCoreApplication::postEvent( itor->first, itor->second); } } }; //------------------------ int ret = 0; { CustomEventBlocker customEventBlocker; ret = mbox.exec(); } @
  • How to set correct PointSize in a QGraphicsTextItem

    2
    0 Votes
    2 Posts
    2k Views
    S
    Perhaps your falling in the documentation remark of "setPointSizeF": "... The requested precision may not be achieved on all platforms" Did you try using "setPixelSize" (calculating the pixel size corresponding to the desired font height) ? Something like @ float lPixelSizeInMillimeters = 0.3527; float lFontSizeInMillimeters = 12.4: int lFontSizeInPixels; lFontSizeInPixels = (int)(lFontSizeInMillimeters / lPixelSizeInMillimeters) m_textFont.setPixelSize(lFontSizeInPixels); @ Hope this is possible and will help...
  • 0 Votes
    7 Posts
    3k Views
    P
    Ok, Thanks for your reply. then i need to check for windows api to do so.
  • Using same "Qt include files set" for window and linux (Qt 4.8.0)

    4
    0 Votes
    4 Posts
    2k Views
    V
    Thanks a lot for replying. To add to above information, here is what I get when I exchange header files on windows and linux. When I use the header files on linux, which are generated on windows, I do not get build errors but, i get run time crash When I use the header files on windows, which are generated on linux, I get following link errors error LNK2001: unresolved external symbol "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A)
  • Is there any digital Waveform viewer control available in QT?

    10
    0 Votes
    10 Posts
    8k Views
    A
    OK, thanks for reporting back, and good luck with your project!
  • How to change the repaint order of layered QWidget in Qt?

    2
    0 Votes
    2 Posts
    1k Views
    A
    No, you cannot alter the painting order.
  • [Solved] How to dynamically translate QAbstractTableModel headers?

    3
    0 Votes
    3 Posts
    5k Views
    ?
    I've used the QEvent::LanguageChange event in other parts of my code, as I said my program gets dynamically translated successfully but with the exception of the headers of my QAbstractTableModel subclass. Maybe my question wasn't the correct, I was looking for an equivalent to "ui->retranslateUi(this)”. As there is no equivalent, I followed your suggestion and I've used again the QEvent::LanguageChange event and everything is working fine now. Thanks for your help Andre!
  • QMessageBox don't show again check button.

    3
    0 Votes
    3 Posts
    4k Views
    L
    You might also take a look at "QxtConfirmationMessage":http://libqxt.bitbucket.org/doc/0.6/qxtconfirmationmessage.html.
  • [SOLVED] QODBC - Driver not loaded - Help required

    6
    0 Votes
    6 Posts
    11k Views
    V
    I figured it out the reason for building .lib and not .dll - I configured my Qt source to build for static libraries. By the by, I tried installing Qt 4.8.1 and it comes with support to QODBC & QODBC3 and now my application is also running with no error on Qt 4.8.1. I have to find a way to build my Qt 4.7.4 for static libraries. Thanks to Lykurg again. ~veeraps