Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QGridLayout replacing problem(in puctures)

    7
    0 Votes
    7 Posts
    4k Views
    K
    Thank you very much). Your advice has solved my problem perfectly.
  • 0 Votes
    1 Posts
    797 Views
    No one has replied
  • VTY over SSH Tunnel

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]textEdit. Different colors for different lines/strings?

    3
    0 Votes
    3 Posts
    4k Views
    M
    hi thanks for your reply but hmm after many tries... I finally made something, that's almost what I want. if you just add html style infront of your text/strings/arrays whasotevever it automatically convert it. for bold you just have do add @<b></b>@ @key_storage[10000] = "<b>Film Titel Original: </b> "; @ and if someone else read my other postings, its working as i want. It just little surprise me, that the @"\n" //new line command losts its effect after using one html code@ so I have to replace that with <br>. but okay
  • Sniffer (as antycheat)

    6
    0 Votes
    6 Posts
    3k Views
    N
    Launcher will be connected to server-side application and I'll encrypt all packets so that everyone looks different to prevent emulators. I hope It'll work. Otherwise I can always ban those few smarter ;P
  • [SOLVED]textBrowser->setText or textEdit->setText Using String Array

    4
    0 Votes
    4 Posts
    6k Views
    M
    great, that was exactly what I was looking for @ QStringList strings; for (int b = 0; b<=20; b++){ strings << key_storage[b]; } ui.textEdit->setText(strings.join("\n"));@ gonna mark is as solved
  • [SOLVED] ! Qt Array Problem (little one) read line by line

    6
    0 Votes
    6 Posts
    5k Views
    M
    [quote author="Jake007" date="1354445141"]I use qDebug() in such simple cases. It's usually faster. Please mark thread as solved ( edit first post and add [SOLVED] in front of a title). Regards, Jake[/quote] I just did as you say :P
  • 0 Votes
    3 Posts
    1k Views
    P
    Thank you for your reply. I've compiled it under Win7. The only difference are the static linked libs...
  • Accessing a PHP object from server.

    7
    0 Votes
    7 Posts
    3k Views
    O
    I want to access an object as in PHP, AS3 or other script OO models. I have identical structures from some objects, so I'll probably have to create classes for those objects first, then extract values from my xml files after getting them into a QDomDocument.
  • Udemy PySide Tutorial Videos

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Open a serial port on Ubuntu SO

    6
    0 Votes
    6 Posts
    5k Views
    A
    If your problem solved please add [Solved] tag
  • QFileSystemModel: fileName works, filePath and fileInfo crashes

    3
    0 Votes
    3 Posts
    3k Views
    D
    YES! You saved my life. Works perfectly. I suspected that it might be due to the different indexes, however I didn't know how to match them. Thanks a lot for the explanation :)
  • QGLWidget with custom OpenGL context

    3
    0 Votes
    3 Posts
    5k Views
    M
    I wrote a small article to describe that : http://virtrev.blogspot.fr/2012/12/custom-opengl-context-with-qt.html
  • [SOLVED]qUncompress not enough memory

    7
    0 Votes
    7 Posts
    7k Views
    J
    I removed QIODevice::Text when saving. I assume that it's binary by default, as there is no binary flag. I added toBase64 when saving and fromBase64 when reading. I still get an error that data is corrupted. When I remove conversion to/from base64 on both sides, it's the same error: input data is corrupted. The only difference is with and without base64 is: With base64: @qUncompress: Input data is corrupted@ Without base64: @qUncompress: Z_DATA_ERROR: Input data is corrupted // Notice Z_DATA_ERROR@ EDIT After recompiling entire project, started to work. There are no Text mode flags while reading, saving, and there is no conversion to base64. Marked as Solved. Thanks for the help! Regards, Jake
  • Render QGraphicsScene to a QPrinter to export PDF

    6
    0 Votes
    6 Posts
    9k Views
    B
    I tried a Python version and it seems to work: @ def exportPDF(self): fileName = "/tmp/test.pdf" printer = QPrinter (QPrinter.HighResolution) printer.setPageSize(QPrinter.A4) printer.setOrientation(QPrinter.Portrait) printer.setOutputFormat(QPrinter.PdfFormat) printer.setOutputFileName(fileName) p = QPainter(printer) self.scene.render(p) p.end() @ Steno: Is it really an "external device" if you are printing to a file? An architecture for printing can be very confusing. For example, is a PDF file paginated? Do you use a "Print Setup" dialog to setup the pagination of a PDF file? Why not the same for SVG format? Is it because external printers and PDF files support the notion of many pages, while SVG format doesn't (but defines a viewport that is a single page?)
  • [SOLVED] Determining coordinates for Custom Completer

    4
    0 Votes
    4 Posts
    1k Views
    D
    You should retrieve the combobox position every time the completer shall pop up and update the list view's coordinates accordingly. Taking and setting the position once in the combobox or mainwindow show() isn't enough. The combobox might change its position (think of rearranging, resizing,...)
  • Iterate over a QList with QFile's

    5
    0 Votes
    5 Posts
    6k Views
    JeroentjehomeJ
    Be aware that the foreach is much more code consuming then the C-style for loop, but if it isn't used a lot, the foreach is the way to go ;-) The correct use of the iterator is more like this: @QList<QFile *>::iterator i;@
  • Changing layout depent on class

    3
    0 Votes
    3 Posts
    1k Views
    T
    You could have the derived classes all return a widget and embed those into a static layout. We do that a lot in Creator: e.g. the Projects mode is basically widgets from all kinds of plugins merged into one common layout.
  • Is QtWebKitd5.lib missing from Qt 5.0.0 Beta?

    25
    0 Votes
    25 Posts
    10k Views
    T
    [Late response, but posting for others who may also have hit this particular error]. Regarding the error: ‘...\configure.exe’ is not recognized as an internal or external command... I was getting this error as well. Digging into it a bit, in qtbase\configure.bat, there is a test for the existance of a file called '.gitignore'. If this file does not exist, then it jumps to the end of the script and attempts to run 'configure.exe'. If the file does exist, then it first builds configure.exe (among other things). I suspect you're getting this error because, like me, you downloaded the sources from the link on http://qt-project.org/downloads rather than getting them via git. For some reason, the .gitignore file is missing from the qtbase directory. When I got the sources via git, the file was present. Just create the file (e.g. "echo foo > qtbase.gitignore") and you should be able to run the configure script successfully. [Perhaps the configure.bat script should instead test for the presence of qtbase\configure.exe, rather than qtbase.gitignore?]
  • [SOLVED]QMutex not working at same way on Windows and Linux

    7
    0 Votes
    7 Posts
    5k Views
    A
    Thanks, your reply is very helpful!