Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Strange error message from QtCreator

    5
    0 Votes
    5 Posts
    2k Views
    B
    [quote author="gayu" date="1353498871"]Hope so the link will be helpful for you http://doc.qt.digia.com/qtcreator-snapshot/creator-debugger-engines.html[/quote] I've done what I'd read here, but this not solved my problem...
  • How to redirect QMessageBox text to a Textfile

    8
    0 Votes
    8 Posts
    3k Views
    A
    Ok, I have not tried this myself, but I would try this: Create an object that you install as an event filter on your QApplication. Listen for ShowEvents, and see if the object it was aimed at is a QMessageBox subclass. If so, you can read the text from it and log that.
  • Widget's geometry before first show

    20
    0 Votes
    20 Posts
    17k Views
    A
    You're right, I saw that ))), but as I understood DimanNe did find good solution. I've come across the same problem and QWidget::adjustSize() works well and looks better as for me. I posted that just for the case if someone like me has the same problem and check QWidget::adjustSize().
  • Static linking in Qt Comercial SDK

    13
    0 Votes
    13 Posts
    4k Views
    sierdzioS
    Nice, I'm glad it worked :)
  • 0 Votes
    1 Posts
    970 Views
    No one has replied
  • [Solved]Program exited with code 0

    49
    0 Votes
    49 Posts
    31k Views
    G
    I did it. Thank you so much :)
  • Close application and relaunch but with an argument..?

    11
    0 Votes
    11 Posts
    3k Views
    L
    Anyone about the question of alexandros?
  • QT 5 mixed opengl and qml problem

    3
    0 Votes
    3 Posts
    3k Views
    M
    In my example, i mixed old rendering opengl stuff with qquick item which used VBO i presume. I think, it's not a good idea to mixed that. So now i used VBO for my rendering and it's work.
  • [Solved] QPixmap: It is not safe to use pixmaps outside the GUI thread!

    2
    0 Votes
    2 Posts
    9k Views
    D
    I fix it.. but I not understand how a Simple Dialog with some message text can make this errors appears. Well, I remove the menssage errors and just add to log... it's better for user. Thanks all.
  • Best practices with QRunnable

    10
    0 Votes
    10 Posts
    28k Views
    M
    @INeedMySpace There's no argument that subclassing QThread can work -- and indeed it was the only way to use QThread in earlier versions of Qt -- but since that method is rife with potential problems, that particular methodology is deprecated for most common applications and should be avoided if possible.
  • [Solved] Windows - getting path of 64 bit process from 32 bit application

    4
    0 Votes
    4 Posts
    11k Views
    U
    Thanks rcari and MulderR. The LoadLibrary / GetProcAddress approach works well. Using QLibrary the working code looks like [code] // get process handle DWORD pidwin; GetWindowThreadProcessId(foregroundWindow, &pidwin); HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pidwin); // get process path WCHAR szProcessPath[MAX_PATH]; DWORD bufSize = MAX_PATH; QueryFullProcessImageName pQueryFullProcessImageName = NULL; pQueryFullProcessImageName = (QueryFullProcessImageName) QLibrary::resolve("kernel32", "QueryFullProcessImageNameW"); QString processPath; if(pQueryFullProcessImageName != NULL) { pQueryFullProcessImageName(hProcess, 0, (LPWSTR) &szProcessPath, &bufSize); processPath = QString::fromUtf16((ushort*)szProcessPath, bufSize); } [/code] More information on which function to use for the different windows versions - http://msdn.microsoft.com/en-us/library/windows/desktop/ms684919(v=vs.85).aspx
  • QComboBox with static image

    2
    0 Votes
    2 Posts
    2k Views
    JeroentjehomeJ
    You might want to check out the type of events that Qt can handle. For the given widget you might want to use this one: @QEvent::FocusOut 9 Widget loses keyboard focus (QFocusEvent).@ Then in that event set the value to the one with the icon only to display. Tada, should work Greetz
  • About running

    3
    0 Votes
    3 Posts
    1k Views
    JeroentjehomeJ
    Creator is probably set to debug, so it will be there. The command will run a executable, so can be anywhere. As Mulder says.....make sure that Qt can find the plugins
  • Loading from file to QList with QDataStream

    6
    0 Votes
    6 Posts
    4k Views
    EddyE
    Thanks for letting us know. could you please edit your first post and prepend [Solved] to the title? That's how we inform others the topic is solved.
  • 0 Votes
    12 Posts
    5k Views
    D
    OK, resolved! I set codec on QTextStream and now is working as expected! Thanks
  • [Solved]Why my defined QAction has no response?

    16
    0 Votes
    16 Posts
    5k Views
    G
    So when using Q3ToolBar and Q3PopupMenu, their actions must be Q3Actions. Otherwise the QAction itself is used right.
  • Help regarding QNetworkProxy

    1
    0 Votes
    1 Posts
    915 Views
    No one has replied
  • Adding a form that appears before the main window

    15
    0 Votes
    15 Posts
    12k Views
    sierdzioS
    [quote author="yupifourbi" date="1353399194"] Is it ok to say just 'return 0;'? As I don't pass anything else after the App/ program ends.[/quote] Interesting approach. It's probably alright, if the dialog works OK, then it should be fine.
  • [SOLVED]just a line of code

    6
    0 Votes
    6 Posts
    2k Views
    N
    Thank you all.I have a try and indeed only the Unix convention works.
  • Failing to SetFilter of QFileSystemModel for .mp3/.avi files

    1
    0 Votes
    1 Posts
    931 Views
    No one has replied